package com.leolian.spring01.beanannotation.injection.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leolian.spring01.beanannotation.injection.service.InjectionService;
import com.leolian.spring01.ioc.injection.dao.InjectionDao;

@Service
public class InjectionServiceImpl implements InjectionService {
	
	@Autowired
	private InjectionDao injectionDao;
	
	public void save(String param) {
		System.out.println("Service : "+param);
		param = param + this.hashCode();
		injectionDao.save(param);
	}

}
